Skip to content

Traduction de api/route-object.md #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 27, 2017
Merged

Traduction de api/route-object.md #7

merged 2 commits into from
May 27, 2017

Conversation

Kocal
Copy link
Member

@Kocal Kocal commented May 23, 2017

No description provided.

@Kocal Kocal requested a review from MachinisteWeb May 23, 2017 20:11
Copy link
Member

@MachinisteWeb MachinisteWeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Et une de plus !

@@ -1,89 +1,89 @@
# The Route Object (En) <br><br> *Cette page est en cours de traduction française. Revenez une autre fois pour lire une traduction achevée ou [participez à la traduction française ici](https://github.com/vuejs-fr/vue-router).*
# L'Objet `Route`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

L'objet


A **route object** represents the state of the current active route. It contains parsed information of the current URL and the **route records** matched by the URL.
Un **objet `Route`** représente l'état de actuel de la route active. Il contient des informations analysées à propos de l'URL courante et **les itinéraires de route** appariés par l'URL.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l'état actuel


- Inside components as `this.$route`
- À l'intérieur des composants en tan que `this.$route`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

en tant

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😨


- Inside `$route` watcher callbacks
- À l'intérieur des fonctions de rappel de pendant l'observation de `$route`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

À l'intérieur des fonctions de rappel des observateurs de $route


``` js
router.beforeEach((to, from, next) => {
// to and from are both route objects
// to et from sont tous les deux des objets Route
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to et from

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Je PR l'original


``` js
const router = new VueRouter({
scrollBehavior (to, from, savedPosition) {
// to and from are both route objects
// to et from sont tous les deux des objets Route
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to et from

}
})
```

### Route Object Properties
### Propriétés de l'Objet Route
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

l'objet route

ou

l'objet Route


An Array containing **route records** for all nested path segments of the current route. Route records are the copies of the objects in the `routes` configuration Array (and in `children` Arrays):
Un `Array` contenant les **les itinéraires de la route** pour chaque segment de chemin imbriqué de la route courante. Les itinéraires de la route sont des copies des objets dans l'`Array` de configuration `routes` (et dans les `Array`s `children`).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dans le tableau de configuration

les tableaux children

https://developer.mozilla.org/fr/docs/Web/JavaScript/Reference/Objets_globaux/Array

@Kocal
Copy link
Member Author

Kocal commented May 27, 2017

Corrigé

Copy link
Member

@MachinisteWeb MachinisteWeb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seconde relecture ok

@Kocal Kocal merged commit 79cfb0a into vuejs-fr:working May 27, 2017
@Kocal Kocal deleted the api/route-object.md branch May 27, 2017 18:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants